package org.jeecg.modules.business.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.business.entity.BusDictItem;
import org.jeecg.modules.business.mapper.BusDictItemMapper;
import org.jeecg.modules.business.service.IBusDictItemService;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.model.SysUserSysDepartModel;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 业务字典配置表
 * @Author: jeecg-boot
 * @Date:   2023-03-06
 * @Version: V1.0
 */
@Service
public class BusDictItemServiceImpl extends ServiceImpl<BusDictItemMapper, BusDictItem> implements IBusDictItemService {
    @Override
    public IPage<BusDictItem> queryItemByParentId(String dictId, BusDictItem dictItemParams, IPage page) {
//        List<BusDictItem> list = baseMapper.queryItemByParentId(page, dictId, dictItemParams);
//        Integer total = baseMapper.queryItemByParentIdTotal(dictId, dictItemParams);
//
//        IPage<BusDictItem> result = new Page<>(page.getCurrent(), page.getSize(), total);
//        result.setRecords(list);

        IPage<BusDictItem> result = new Page<>();
        return result;
    }
}
